/**
 * Created by Administrator on 2017/3/21.
 */
import React, {Component} from 'react';
import {Form, Input, Radio, Select, Switch, TreeSelect,Descriptions,Tag} from 'antd';
import {connect} from 'dva';
class AddPoliciesForm extends Component {
  constructor(props) {
    super(props);
    this.state = {
      showCustom: false
    };
  }

  componentDidMount() {
  }

  render() {

    const props=this.props
    return (
      <div>
        <h3>账单信息</h3>
        <Descriptions className="data-desc" size='small' bordered column={2}>
          <Descriptions.Item
            label='金额'><span className="money">￥{props.money}元</span></Descriptions.Item>
          <Descriptions.Item
            label='账单生成时间'>{props.created_at}</Descriptions.Item>
          <Descriptions.Item
            label='头像/昵称'><img src={props.user.avatar_url} alt="" style={{width:'30px',height:'30px',borderRadius:'50%',marginRight:'5px'}}/>{props.user.nickname}</Descriptions.Item>
          <Descriptions.Item
            label='姓名'>{props.user.name}</Descriptions.Item>
          <Descriptions.Item
            label='手机号码'>{props.user.mobile}</Descriptions.Item>
          <Descriptions.Item
            label='层级'>层级{props.user.level}</Descriptions.Item>
        </Descriptions>
        <h3 style={{marginTop:'10px'}}>申请车主信息</h3>
        <Descriptions className="data-desc"  size='small' bordered column={2}>
          <Descriptions.Item
            label='车牌号'><Tag color="blue" style={{fontSize:'14px'}}>{props.application.license_plate_number}</Tag></Descriptions.Item>
          <Descriptions.Item
            label='车主手机'>{props.application.mobile}</Descriptions.Item>
          <Descriptions.Item
            label='申请通过时间'>{props.application.reviewed_at}</Descriptions.Item>
        </Descriptions>
      </div>
    );
  }
}

const AddPoliciesFormWrap = Form.create()(AddPoliciesForm);
export default connect()(AddPoliciesFormWrap);


